package lab1Exercise1;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
//import java.lang.String;

public class Person implements Serializable {
	
	private String firstname;
	private String lastname;
	protected int age;
	
	public Person(String firstname, String lastname, int age)
	{
		this.firstname = firstname;
		this.lastname = lastname;
		this.age = age;
	}
	
	private Person() { }
	
	public String toString()
	{
		return "Name: "+firstname + " "+lastname.toUpperCase() + "\tAge: "+ age;
	}
	

	

}
